var status = -1;
var selectionLog = [];

function action(c, b, a) {
    if (cm.isQuestActive(34413) && cm.getNumberFromQuestInfo(34413, "done") == 0) {
        action1(c, b, a)
    } else {
        cm.dispose()
    }
}

function action1(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.curNodeEventEnd(true);
            cm.setInGameDirectionMode(true, false, true);
            cm.dispose();
            cm.warp(910310505, 0)
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};